/*
 * Copyright © 2004-2014 chenYuan. All rights reserved.
 * @Website:wwww.jspx.net
 * @Mail:39793751@qq.com
 * author: chenYuan , 陈原
 * @License: Jspx.net Framework Code is open source (LGPL)，Jspx.net Framework 使用LGPL 开源授权协议发布。
 * @jvm:jdk1.6+  x86/amd64
 *
 */
package com.seeyon.apps.ext.kingdee.util;


import com.seeyon.apps.ext.kingdee.json.JSONObject;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.Serializable;
import java.lang.reflect.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;


/**
 * Created by IntelliJ IDEA.
 *
 * author chenYuan (mail:39793751@qq.com)
 * date: 2006-12-27
 * Time: 15:16:56
 * LifecycleManager
 */

public class TXWebUtil {
    public final static String chainType = "chain";
    public final static String redirectType = "redirect";
    public final static String defaultExecute = "execute";
    public static final String defMethod = "method";
    public final static String REPEAT_VERIFY_KEY = "jspx:operate:repeat:verify:%s";
    public final static String AT = "@";

    private TXWebUtil() {

    }



    /**
     * @param string   字符串
     * @param response 应答
     */
    public static void print(String string, HttpServletResponse response) {
        if (response == null) {
            return;
        }

        response.setContentType("application/json;charUTF-8");
        PrintWriter out;
        try {
            out = response.getWriter();
            out.print(string);
            out.flush();
            out.close();

        } catch (Exception e) {
            e.printStackTrace();

        }
    }





}